From: Paul Spooren Date: Sun, 22 Aug 2021 10:07:20 +0000 (-1000) Subject: luci-app-attendedsysupgrade: use detail not message X-Git-Url: http://git.openwrt.org/%22https:/collectd.org/%22http:/www.crowdsec.net//%22https%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22https%22?a=commitdiff_plain;h=53f59d35ccd6f026649d27fb6c872115ee3f0823;p=project%2Fluci.git luci-app-attendedsysupgrade: use detail not message The new API unifies all human readable responses in the `detail` field to follow the newly used framework. Signed-off-by: Paul Spooren (cherry picked from commit 2a29911121bf72d5d316b2eeae7f184b8ce14482) --- diff --git a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js index e49252ba3a..fc179212b1 100644 --- a/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js +++ b/applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js @@ -185,7 +185,7 @@ function request_sysupgrade(server_url, data) { case 500: // build failed res = response.json() var body = [ - E('p', {}, _(res.message)), + E('p', {}, res.detail), E('p', {}, _("Please report the error message and request")), E('b', {}, _("Request to server:")), E('pre', {}, JSON.stringify(data, null, 4)),